package com.flyco.modules.stm.mapper;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flyco.modules.stm.entity.StmStoreSalesRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Description: 门店店员关联
 * @Author: flyco
 * @Date:   2020-09-23
 * @Version: V1.0
 */
@DS("store")
@Repository
public interface StmStoreSalesRelationMapper extends BaseMapper<StmStoreSalesRelation> {

	public boolean deleteByMainId(Long mainId);
    
	public List<StmStoreSalesRelation> selectByMainId(Long mainId);

	List<StmStoreSalesRelation> getStoreSalesRelationPage(Page<StmStoreSalesRelation> page, @Param("ew") Wrapper<StmStoreSalesRelation> queryWrapper);
}
